fix an annoying Wstringop-truncation warning. (#1348)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sat, 12 Oct 2024 18:24:36 +0000 (12:24 -0600)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 18:24:36 +0000 (12:24 -0600)
commita4dec0acfbeb6d93a9a73e3673da983bfdd7511b
treedb7a7e92bd979badc86f76fcc2eeae84c9cb7ead
parenta21fe52d4945b0d5e8d0c5328c957f58edef3f5e
fix an annoying Wstringop-truncation warning. (#1348)

* fix an annoying Wstringop-truncation warning.

while the warning is fixed we can still index outside of the
gps_categories array :(

* solved stringop-truncation w/o format macro ...

constants, rely on integer promotion.
Also, guard against devices with more than 16 categories should
they exist.
jeeps/gpsapp.cc